From 2a010416e02c2a9375317f386dd5e1efabc8c8f5 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 15 Oct 2008 15:58:09 +0100 Subject: [PATCH] x86 cpuid: leaf 4 sub-index goes in %ecx, not %ebx Signed-off-by: Tim Deegan --- xen/arch/x86/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 3046b89495..ce96ad6f68 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -710,7 +710,7 @@ static void pv_cpuid(struct cpu_user_regs *regs) if ( current->domain->domain_id != 0 ) { if ( !cpuid_hypervisor_leaves(a, &a, &b, &c, &d) ) - domain_cpuid(current->domain, a, b, &a, &b, &c, &d); + domain_cpuid(current->domain, a, c, &a, &b, &c, &d); goto out; } -- 2.30.2